package cool.houge.pig.infra.web;

import cool.houge.pig.model.LoginChannel;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

/**
 * 登录通道回调.
 *
 * @author KK (kzou227@qq.com)
 */
@FunctionalInterface
public interface LoginChannelHandler {

  /**
   * @param request
   * @param loginChannel
   * @return
   */
  Mono<ServerResponse> handle(ServerRequest request, LoginChannel loginChannel);
}
